home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / m68k / 133 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  3.8 KB

  1. Path: newshub.sdsu.edu!dickory!papowell
  2. From: papowell@dickory.sdsu.edu (Patrick Powell)
  3. Newsgroups: comp.os.os9,comp.sys.m68k
  4. Subject: Re: 68332 CSBOOT* help?
  5. Followup-To: comp.os.os9,comp.sys.m68k
  6. Date: 22 Jan 1996 15:12:44 GMT
  7. Organization: San Diego State University
  8. Message-ID: <4e09hc$t1l@hole.sdsu.edu>
  9. References: <4dkvv8$v65@linux.cpsc.ucalgary.ca>
  10. NNTP-Posting-Host: dickory.sdsu.edu
  11.  
  12. Russell Magee (magee@cpsc.ucalgary.ca) wrote:
  13. :   Hello all,
  14.  
  15. :   I feel bad asking this question, but I'm under the gun, so to speak, and
  16. : my boss is getting very uncomfortable with some upcoming deadlines, so I'd
  17. : appreciate any info!
  18.  
  19. :   The situation is this: We're in the process of porting OS-9 to a 68332
  20. : system with SRAM, serial stuff etc. Now according to the board's designer,
  21. : the system has been designed to be as close to the 68332 EVS as possible.
  22. :   There are two major (minor?) differences, though: the static RAM's
  23. : Write chip selects are swapped with respect to the EVS's RAM setup (CS0-1).
  24. : No prob, that's just a minor change in the config files and a new make of
  25. : RomBug. Second difference, the EPROM is one 16-bit wide 27C1024 instead of
  26. : two 8-bit wide EPROMS.
  27.  
  28. :   It made sense (to me) to get OS-9's RomBug up and running on the EVS first.
  29. : So far, so good. RomBug comes up fine. Now, I try out the slightly massaged
  30. : RomBug on our '332 system, and PLOP. Nothing, except the CPU gets stuck in
  31. : an endless cycle of RESET*/HALT*. However, if I assemble the SAME code, but
  32. : at origin $0 instead of origin $60000 (where the EVS expects its ROM), the
  33. : CPU actually seems to start out ok. (A logic analyzer we borrowed actually
  34. : showed the initial SP/PC fetch, and the first few branch instructions being
  35. : found in the EPROM, from base $0.)
  36.  
  37. :   I can't seem to figure out how CSBOOT* is mapping the EPROM in the '332's
  38. : address space. The EVS executes Rombug fine at $60000; the start of the
  39. : EPROM is like this:
  40.  
  41. : Offset    00  01  02  03  04  05  06  07  . . .
  42. : ------    --  --  --  --  --  --  --  --
  43. : $00000    00  00  49  00  00  06  04  c4 ..
  44.  
  45. : This means the CPU's initial SP will be $4900, PC will be $6004c4, which
  46. : works. But HOW does the EVS find the EPROM at $60000 immediately after
  47. : bootup? My understanding of the 332 is that the EPROM (and all other
  48. : peripherals hooked up to the chip select lines) must be mapped into
  49. : memory by the boot code (via the CSAR/CSORs). If this is so, how does
  50. : the EPROM get up to $60000 at the very start?
  51.  
  52. :   A local hardware guru we've talked to says that the '332 must execute
  53. : the EPROM from $0.l after a reset, then the software must remap the EPROM
  54. : afterward if desired.
  55.  
  56. :  Sorry for the long message. I am kind of at a dead end here...email replies
  57. : would be appreciated.
  58.  
  59. :  -Russ Magee
  60. :   magee@cpsc.ucalgary.ca
  61.  
  62. Russ, the 68332 has a special signal sequence that is sent out during
  63. the first couple of memory accesses after reset.  This signal sequence
  64. is usually decoded by a PAL to produce a BOOT ROM Chip Select signal.
  65.  
  66. In addition,  usually the address signals are decoded as well, allowing the
  67. Boot Rom to  be accesss.  Now the 68332 also has on-chip memory decoding,
  68. which allows some of the output pins to be used as chip selects.
  69. So you can get some pretty strange effects if you do not know what you
  70. are doing at the hardware/software level.
  71.  
  72. Moral of the story:  you need the PAL equations for the support chips,
  73. a circuit diagram,  AND a COMPLETE listing of the startup code.
  74. Then you start poking around... for weeks sometimes...
  75.  
  76. I am curious - who is making the EVS clone?  I would be interested in a
  77. couple of these.
  78.  
  79. --
  80. Prof. Patrick Powell
  81. Dept. Electrical and Computer Engineering,
  82. San Diego State University,
  83. San Diego, CA 92182-1309
  84. Office (619) 594-7796; Lab (619) 594-7578 FAX (619) 594-7577
  85. email: papowell@sdsu.edu
  86.